package string;

public class StringDemo {

    public static  void  main(String[] args){
        String a = "555";
        String b = "555";
        System.out.println(a==b);
        System.out.println(a.equals(b));
        String aa = new String("555");
        String bb = new String("555");
        System.out.println(aa==bb);
        System.out.println(aa.equals(bb));
        System.out.println(a==aa);
        System.out.println(a.equals(aa));
    }
}
